package com.exam.controller;

import com.exam.pojo.domain.FeedBack;
import com.exam.service.IFeedBackService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/feedback")
@RequiredArgsConstructor
@Slf4j
@Api(tags = "反馈接口")
public class FeedBackController {

    private final IFeedBackService feedBackService;

    @PostMapping
    @ApiOperation("添加反馈")
    public void addFeedBack(@RequestBody FeedBack feedBack){
        feedBackService.addFeedBack(feedBack);
    }
}
